package main

import (
	"fmt"
	"gopl/sync/transaction/bank"
)

func alice(amount int) {
	fmt.Printf("Alice deposit $%d\n", amount)
	bank.Deposit(amount)
}

func bob(amount int) {
	fmt.Printf("Bob deposit $%d\n", amount)
	bank.Deposit(amount)
}

func main() {
	alice(100)
	bob(200)
	fmt.Printf("balance: $%d\n", bank.Balance())
}
